/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * SessionPanelForTabbedPane.java
 *
 * Created on Mar 16, 2011, 7:49:01 PM
 */

package GUIforms;

/**
 *
 * @author danielsl
 */
public class SessionPanelForTabbedPane extends javax.swing.JPanel {

    /** Creates new form SessionPanelForTabbedPane */
    public SessionPanelForTabbedPane() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        sessionNameLabel = new javax.swing.JLabel();
        sessionNameTextField = new javax.swing.JTextField();
        sessionDateTextField = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        sessionTimeLabel = new javax.swing.JLabel();
        sessionTimeTextField = new javax.swing.JTextField();
        sessionPlaceLabel = new javax.swing.JLabel();
        sessionPlaceDropDown = new javax.swing.JComboBox();
        sessionUsersLabel = new javax.swing.JLabel();
        facilitatorLabel = new javax.swing.JLabel();
        facilitatorDropDown = new javax.swing.JComboBox();
        secretaryLabel = new javax.swing.JLabel();
        secretaryDropDown = new javax.swing.JComboBox();
        expertsLabel = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        availableUsersList = new javax.swing.JList();
        addAllUsersButton = new javax.swing.JButton();
        addUserButton = new javax.swing.JButton();
        removeUserButton = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        addedUsersList = new javax.swing.JList();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel2 = new javax.swing.JLabel();

        sessionNameLabel.setText("Navn:");

        jLabel1.setText("Tidspunkt:");

        sessionTimeLabel.setText("Klokkeslett:");

        sessionPlaceLabel.setText("Plass:");

        sessionPlaceDropDown.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "---------", "Høgskolen i Sør-Trøndelag" }));

        sessionUsersLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        sessionUsersLabel.setText("Deltakere:");

        facilitatorLabel.setText("Fasilitator:");

        facilitatorDropDown.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "------------" }));

        secretaryLabel.setText("Sekretær:");

        secretaryDropDown.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "------------" }));

        expertsLabel.setText("Eksperter:");

        availableUsersList.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane1.setViewportView(availableUsersList);

        addAllUsersButton.setText("Legg til alle");

        addUserButton.setText("Legg til");

        removeUserButton.setText("Fjern");

        addedUsersList.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane2.setViewportView(addedUsersList);

        jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);

        jLabel2.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        jLabel2.setText("Informasjon:");

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel2)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, sessionNameTextField)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, sessionNameLabel)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel1)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, sessionDateTextField)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, sessionTimeLabel)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, sessionTimeTextField)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, sessionPlaceLabel)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, sessionPlaceDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 145, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .add(18, 18, 18)
                .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(18, 18, 18)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(facilitatorLabel)
                    .add(secretaryLabel))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(secretaryDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(facilitatorDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(52, 52, 52))
            .add(layout.createSequentialGroup()
                .add(213, 213, 213)
                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 90, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)
                    .add(removeUserButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
                    .add(addAllUsersButton)
                    .add(addUserButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 94, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(52, Short.MAX_VALUE))
            .add(layout.createSequentialGroup()
                .add(213, 213, 213)
                .add(expertsLabel)
                .add(310, 310, 310))
            .add(layout.createSequentialGroup()
                .add(213, 213, 213)
                .add(sessionUsersLabel)
                .add(305, 305, 305))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
                        .add(jLabel2)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionNameLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionNameTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(5, 5, 5)
                        .add(jLabel1)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionDateTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionTimeLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionTimeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionPlaceLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionPlaceDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
                        .add(sessionUsersLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(facilitatorDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(facilitatorLabel))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(secretaryLabel)
                            .add(secretaryDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(expertsLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(layout.createSequentialGroup()
                                .add(33, 33, 33)
                                .add(addUserButton)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(removeUserButton)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .add(addAllUsersButton))
                            .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 270, Short.MAX_VALUE))
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton addAllUsersButton;
    private javax.swing.JButton addUserButton;
    private javax.swing.JList addedUsersList;
    private javax.swing.JList availableUsersList;
    private javax.swing.JLabel expertsLabel;
    private javax.swing.JComboBox facilitatorDropDown;
    private javax.swing.JLabel facilitatorLabel;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JButton removeUserButton;
    private javax.swing.JComboBox secretaryDropDown;
    private javax.swing.JLabel secretaryLabel;
    private javax.swing.JTextField sessionDateTextField;
    private javax.swing.JLabel sessionNameLabel;
    private javax.swing.JTextField sessionNameTextField;
    private javax.swing.JComboBox sessionPlaceDropDown;
    private javax.swing.JLabel sessionPlaceLabel;
    private javax.swing.JLabel sessionTimeLabel;
    private javax.swing.JTextField sessionTimeTextField;
    private javax.swing.JLabel sessionUsersLabel;
    // End of variables declaration//GEN-END:variables

}
